code: public static Integer toInteger(final StringValue stringValue)
  	{
  		Integer value = null;
  		if (isNotNullOrEmpty(stringValue))
  		{
  			try
  			{
  				value = stringValue.toInteger();
  			}
  			catch (final StringValueConversionException e)
  			{
  				LOGGER.error("Error by converting the given StringValue.", e);
  			}
  		}
  		return value;
  	}
docs: Gets the Integer object or returns null if the given StringValue is null or empty.
  
  @param stringValue
  the user id as StringValue object
  @return the Integer object or null if the given StringValue is null or empty.