void migrateMembershipType ( Node oldMembershipTypeNode ) throws Exception { MembershipType membershipType = readMembershipType ( oldMembershipTypeNode ) ; if ( findMembershipType ( membershipType . getName ( ) ) != null ) { removeMembershipType ( membershipType . getName ( ) , false ) ; } createMembershipType ( membershipType , false ) ; }
Method for membership type migration .