protected java.lang.Object | convertResult(java.lang.reflect.Method method, java.lang.Object resultIn)Optionally, transform any result.
Object resultOut = resultIn;
if ( method.getName().equals( "getMessagesInHistory" ) )
{
final Map<String,Serializable>[] maps = TypeCast.asArray( resultIn );
final MessageTrace[] traces = new MessageTrace[ maps.length ];
for( int i = 0; i < traces.length; ++i )
{
traces[ i ] = WebServiceSupport.mapToMessageTrace( maps[i] );
}
resultOut = traces;
}
return resultOut;
|