code: void migrateMembershipType(Node oldMembershipTypeNode) throws Exception
     {
        MembershipType membershipType = readMembershipType(oldMembershipTypeNode);
  
        if (findMembershipType(membershipType.getName()) != null)
        {
           removeMembershipType(membershipType.getName(), false);
        }
  
        createMembershipType(membershipType, false);
     }
docs: Method for membership type migration.
  @param oldMembershipTypeNode
  the node where membershipType properties are stored (from old structure)
  @throws Exception