Yeah, you should probably customize that back.
Hmm, what could it be? Did you set the hook tasks in the repository constants of your portal? #4 and #5 should point to your "Assign User Membership to AS Java"-task and "Revoke User Membership To AS Java"-task respectivly.