may be it's better to swap strings in if statement: 
if("DEFAULT".equals(element...))
in case to avoid NullPointerException