// grab the persistence name from any annotations to the field
final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
persistName = ReflectionUtils.getPersistenceName( field );
// check the annotations to see of the collection elements have been given a name
final PersistCollection collectionAnnotation = field.getAnnotation( PersistCollection.class );
if( collectionAnnotation != null && !collectionAnnotation.elementPersistName().isEmpty() )
{
elementPersistName = collectionAnnotation.elementPersistName();
}
}
catch( ReflectiveOperationException e )
{
final StringBuffer message = new StringBuffer();