code: public int getMaxValue() {
  		if(type==V4L4JConstants.CTRL_TYPE_LONG)
  			throw new UnsupportedMethod("This control is a long control and does not support calls to getMaxValue()");
  		
  		synchronized(state){
  			if(state.isNotReleased())
  				return max;
  			else
  				throw new StateException("This control has been released and must not be used");
  		}
  	}
docs: This method retrieves the maximum value this control will accept.
  If this control is a string control, this method returns the maximum string
  size that can be set on this control.
  
  @return the maximum value, or the largest string size
  @throws StateException if this control has been released and must not be used anymore.
  @throws UnsupportedMethod if this control is of type {@link V4L4JConstants#CTRL_TYPE_LONG}