public static void main(String[] args) {
    ShapeCache.loadCache();

    Shape2 cs = (Shape2) ShapeCache.getShape("1");
    System.out.println("Shape: " + cs.getType());

    Shape2 cs1 = (Shape2) ShapeCache.getShape("2");
    System.out.println("Shape: " + cs1.getType());

    Shape2 cs2 = (Shape2) ShapeCache.getShape("3");
    System.out.println("Shape: " + cs2.getType());
  }
  public static Shape2 getShape(String shapeId) {

    Shape2 cs = sp.get(shapeId);
    return (Shape2) cs.clone();
  }