JsArray<JsCreateNewConfig> jsarray = parseJson( JsonUtils.escapeJsonForEval( response.getText() ) );
final ArrayList<JsCreateNewConfig> sorted = new ArrayList<JsCreateNewConfig>();
for ( int i = 0; i < jsarray.length(); i++ ) {
sorted.add( jsarray.get( i ) );
}
Collections.sort( sorted, new JsCreateNewConfigComparator() );
popup.setStyleName( "newToolbarDropdown" );
VerticalPanel buttonPanel = new VerticalPanel();
popup.add( buttonPanel );
for ( int i = 0; i < sorted.size(); i++ ) {
final int finali = i;