code: public Type getType() throws GuacamoleException {
  
          String type = getRequiredParameter(TYPE_PARAMETER);
  
          // For each possible object type
          for (Type possibleType : Type.values()) {
  
              // Match against defined parameter value
              if (type.equals(possibleType.PARAMETER_VALUE))
                  return possibleType;
  
          }
  
          throw new GuacamoleClientException("Illegal identifier - unknown type.");
  
      }
docs: Returns the type of object for which the tunnel is being requested.
  
  @return
  The type of object for which the tunnel is being requested.
  
  @throws GuacamoleException
  If the type was not present in the request, or if the type requested
  is in the wrong format.