enhancements
code mapping for layers and fully functional webmap.j application allows you to pass an array of layer names and display only them.
Lines 240 to 242 show how to use the powerful turn_on_layers function.  Pass it the names of the layers you want (regaurdless of which of the three mapservices they are on) and the function will turn off all other layers and turn on the layers you want.