public String getAttribute ( String name , String defaultValue ) { Params . notNullOrEmpty ( name , "Attribute name" ) ; return getAttribute ( name , String . class , defaultValue ) ; }
Get attribute value or given default value if there is no attribute with requested name . If given default value is null and attribute is not found this method still returns null that is requested default value .