private void initAnnotations() {
if ( annotationsArray == null ) {
annotations = new HashMap<Class<? extends Annotation>, Annotation>();
delegatesAnnotationReading();
if (entityType != null) {
final EntityDescriptor entity = mapping.getEntityDescriptor( entityType );
if (entity != null) {
if (propertyName == null) {
//entityType overriding
createIndexed( entity );
}
else {
final PropertyDescriptor property = entity.getPropertyDescriptor( propertyName, elementType );
if (property != null) {
// property name overriding
createDocumentId( property );
createAnalyzerDiscriminator( property );
createFields( property );