try
{
// grab the array annotation if the containing class isn't null. If the containing class is null,
// then later in the code we set the name for which to persist the elements to the classes simple
// name with the compound array name suffix
PersistArray arrayAnnotation = null;
if( containingClass != null && !containingClass.isArray() )
{
final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
arrayAnnotation = field.getAnnotation( PersistArray.class );
}
if( arrayAnnotation != null && !arrayAnnotation.elementPersistName().isEmpty() )
{
elementPersistName = arrayAnnotation.elementPersistName();
}
}
catch( ReflectiveOperationException e )
{
LOGGER.warn( "Field not found in containing class:" + Constants.NEW_LINE +