catch ( NumberFormatException e )
{
}
}
final ClassMap classMap = getClassMap( value.getClass() );
final String methodBase = StringUtils.capitalizeFirstLetter( token );
String methodName = "get" + methodBase;
Method method = classMap.findMethod( methodName, CLASS_ARGS );
if ( method == null )
{
// perhaps this is a boolean property??
methodName = "is" + methodBase;
method = classMap.findMethod( methodName, CLASS_ARGS );
}
if ( method == null )
{
return null;
}
value = method.invoke( value, OBJECT_ARGS );
if ( value == null )
{
return null;
}
if ( Collection.class.isAssignableFrom( value.getClass() ) )
{
ClassMap classMap2 = getClassMap( value.getClass() );
Method method2 = classMap2.findMethod( "toArray", CLASS_ARGS );
value = method2.invoke( value, OBJECT_ARGS );
}
if ( value.getClass().isArray() )
{