private static bool IsMethodImplemented(Type commandType, string methodName)
{
var m = ( commandType
.GetMethod( methodName, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance )
.DeclaringType );
return !m.IsGenericType || m.GetGenericTypeDefinition() != typeof( ServiceCommand<> );
}
}