}
public <O extends WorkspaceObject> O findObjectById(ObjectType<O> type, String id)
{
Class<? extends WorkspaceObjectImpl> impl = typeToClassImpl.get(type);
WorkspaceObjectImpl object = session.findById(impl, id);
if (object != null)
{
return type.cast(object);
}
else