class CaseManagementShapeCommand {

    public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) {
        Command command = CM_SHAPE_TYPES.get(definition.getClass());
        if (command == null) {
            return null;
        }
        applyShapeViewHandlers(definition, shapeView, shapeDef);
        return command.configure(shapeView, shapeDef);
    }

}