ObjectType type = getTypeFromObjectData(objectData);
/* determine type */
switch (objectData.getBaseTypeId()) {
case CMIS_DOCUMENT:
return new DocumentImpl((SessionImpl) this.session, type, objectData, context);
case CMIS_FOLDER:
return new FolderImpl((SessionImpl) this.session, type, objectData, context);
case CMIS_POLICY:
return new PolicyImpl((SessionImpl) this.session, type, objectData, context);
case CMIS_RELATIONSHIP: