code: public <V> V getValue(String pAttribute) {
          J4pReadRequest request = getRequest();
          ObjectName requestBean = request.getObjectName();
          if (requestBean.isPattern()) {
              throw new IllegalArgumentException(
                      "Attributes without ObjectName can be fetched only for non-pattern request (current: " +
                              requestBean.getCanonicalName() + ")");
          }
          // The attribute names are the same as from the request
          if (request.hasSingleAttribute()) {
              // Contains only a single attribute:
              if (pAttribute != null && !pAttribute.equals(request.getAttribute())) {
                  throw new IllegalArgumentException("Given attribute " + pAttribute + " doesnt match single attribute " +
                          "given " + request.getAttribute() + " in the request");
              }
              return (V) getValue();
          } else {
              JSONObject attributes = getValue();
              if (pAttribute == null) {
                  throw new IllegalArgumentException("Cannot use null-attribute name to fetch a value from a multi-attribute request");
              }
              if (!attributes.containsKey(pAttribute)) {
                  throw new IllegalArgumentException("No such key " + pAttribute + " in the set of returned attribute values");
              }
              return (V) attributes.get(pAttribute);
          }
      }
docs: Get the value for a single attribute. This method is appropriate if the request was done for a single
  MBean (no pattern), but multiple attributes. If it is called for a request with non-pattern MBean
  and a single attribute, the given attribute must match the attribute of the request. If this method is
  called with a <code>null</code> argument, then it will return the value if the request was for
  a single attribute, otherwise it will raise an {@link IllegalArgumentException}
  
  @param pAttribute attribute for which to get the value
  @param <V> value type
  @return value
  @throws IllegalArgumentException if the attribute could not be found in the return value or if this method
  is called with a <code>null</code> argument, but the request leads to multiple attribute return values.