// will need to iterate over jsoverlays and convert to MantleXulOverlay
ArrayList<XulOverlay> overlays = new ArrayList<XulOverlay>();
if ( jsperspective.getOverlays() != null ) {
for ( int j = 0; j < jsperspective.getOverlays().length(); j++ ) {
JsXulOverlay o = jsperspective.getOverlays().get( j );
MantleXulOverlay overlay =
new MantleXulOverlay( o.getId(), o.getOverlayUri(), o.getSource(), o.getResourceBundleUri() );
overlays.add( overlay );
}
}
perspective.setOverlays( overlays );