}
@Override
public int compare( final PathTrackingInvocationListener o1, final PathTrackingInvocationListener o2 )
{
final Order order1 = o1.getClass().getAnnotation( Order.class );
final Order order2 = o2.getClass().getAnnotation( Order.class );
if ( order2 == null )
{
return -1;
}
if ( order1 == null )
{
return 1;
}
return order1.value() - order2.value();
}