protected Integer parseOptionalIntValue ( final String path ) { final I_CmsXmlContentValue value = m_xml . getValue ( path , m_locale ) ; if ( value == null ) { return null ; } else { final String stringValue = value . getStringValue ( null ) ; try { final Integer intValue = Integer . valueOf ( stringValue ) ; return intValue ; } catch ( final NumberFormatException e ) { LOG . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_OPTIONAL_INTEGER_MISSING_1 , path ) , e ) ; return null ; } } }
Helper to read an optional Integer value .