public boolean create_type(Type type) throws AlreadyExistsException, MetaException, InvalidObjectException {
this.incrementCounter("create_type");
logStartFunction("create_type: " + type.getName());
// check whether type already exists
if(get_type(type.getName()) != null) {
throw new AlreadyExistsException("Type " + type.getName() + " already exists");
}
//TODO:pc Validation of types should be done by clients or here????
return getMS().createType(type);
}