return new Type(mtype.getName(), mtype.getType1(), mtype.getType2(), fields);
}
public boolean createType(Type type) {
boolean success = false;
MType mtype = getMType(type);
boolean commited = false;
try {
openTransaction();
pm.makePersistent(mtype);
commited = commitTransaction();