public void configureProperty(String propertyName, ElementType elementType) { if ( elementType != ElementType.FIELD && elementType != ElementType.METHOD ) { throw log.getUnsupportedElementTypeException( elementType ); } if ( !ReflectionHelper.propertyExists( currentEntityType, propertyName, elementType ) ) { throw log.getPropertyDoesNotExistException( currentEntityType.getName(), propertyName, elementType ); } this.currentPropertyName = propertyName; }