private boolean shouldUseShortNames() { final NodeEntity graphEntity = getAnnotation(NodeEntity.class); if (graphEntity != null) return graphEntity.useShortNames(); final RelationshipEntity graphRelationship = getAnnotation(RelationshipEntity.class); if (graphRelationship != null) return graphRelationship.useShortNames(); return false; }