assert po != null;
String mapperId = EcoreUtil.getAnnotation(po, UamPackage.eNS_URI, IPObjectConstant.MAPPER_CLASS_NAME_ATTR);
if (mapperId == null) {
throw new UamClientException("Mapper is not specified");
}
IInstanceMapper mapper = mappers.get(mapperId);
if (mapper == null) {
throw new UamClientException(MessageFormat.format("Unable to create EObject: can''t find {0} mapper ", mapperId));
}
try {
return mapper.createPObjectInstance(object, po);
} catch (Exception e) {
throw new UamClientException("Unable to create EObject", e);
}
}