public static MapBean createMapBean(Projection proj,Border border){
  MapBean mapBeano=new BufferedLayerMapBean();
  mapBeano.setBorder(border);
  if (proj != null) {
    mapBeano.setProjection(proj);
    mapBeano.setPreferredSize(new Dimension(proj.getWidth(),proj.getHeight()));
  }
  return mapBeano;
}

public static MapBean createMapBean ( Projection proj , Border border ) { MapBean mapBeano = new BufferedLayerMapBean ( ) ; mapBeano . setBorder ( border ) ; if ( proj != null ) { mapBeano . setProjection ( proj ) ; mapBeano . setPreferredSize ( new Dimension ( proj . getWidth ( ) , proj . getHeight ( ) ) ) ; } return mapBeano ; }
a static method that creates a mapbean and sets its projection and border to the values given .
