public Dimension Dimension(Dimension parent, String name, Type type, Expression expression) {
   DimensionPK pk = parent.getId();
   Dimension dimension =
       new Dimension(
           new DimensionPK(
               pk.getCustomerId(), pk.getProjectId(), pk.getDomainId(), getNewID(name)),
           name,
           type,
           expression);
   dimension.setParentId(parent.getId());
   DimensionServiceBaseImpl.getInstance().store(ctx, dimension);
   return dimension;
 }
 public Attribute Attribute(Dimension parent, String name, Expression expression) {
   DimensionPK pk = parent.getId();
   Attribute attribute =
       new Attribute(
           new AttributePK(
               pk.getCustomerId(),
               pk.getProjectId(),
               pk.getDomainId(),
               pk.getDimensionId(),
               getNewID()),
           name,
           expression);
   return AttributeServiceBaseImpl.getInstance().store(ctx, attribute);
 }