public static Result failure(String messageKey,Object... args){
  return new Result(Type.FAILURE,Collections.singleton(new DiagMessage(messageKey,args)));
}

public static Result failure ( String messageKey , Object ... args ) { return new Result ( Type . FAILURE , Collections . singleton ( new DiagMessage ( messageKey , args ) ) ) ; }
creates a new failure result with the given message key .
