case CMIS_POLICY:
return new PolicyImpl((SessionImpl) this.session, type, objectData, context);
case CMIS_RELATIONSHIP:
return new RelationshipImpl((SessionImpl) this.session, type, objectData, context);
case CMIS_ITEM:
return new ItemImpl((SessionImpl) this.session, type, objectData, context);
case CMIS_SECONDARY:
throw new CmisRuntimeException("Secondary type is used as object type: " + objectData.getBaseTypeId());
default:
throw new CmisRuntimeException("Unsupported base type: " + objectData.getBaseTypeId());
}