code: public static ObjectName newObjectName(String pName) {
          try {
              return new ObjectName(pName);
          } catch (MalformedObjectNameException e) {
              throw new IllegalArgumentException("Invalid object name " + pName,e);
          }
      }
docs: Factory method for creating a new object name, mapping any checked {@link MalformedObjectNameException} to
  a runtime exception ({@link IllegalArgumentException})
  @param pName name to convert
  @return the created object name