public static void run(final String courseGroupID, final String contextID, final String name, final String nameEn,
final String beginExecutionPeriodID, final String endExecutionPeriodID) throws FenixServiceException {
final CourseGroup courseGroup = (CourseGroup) FenixFramework.getDomainObject(courseGroupID);
if (courseGroup == null) {
throw new FenixServiceException("error.noCourseGroup");
}
final Context context = FenixFramework.getDomainObject(contextID);
if (context == null && !courseGroup.isRoot()) {
throw new FenixServiceException("error.noContext");
}
courseGroup.edit(name, nameEn, context, getBeginExecutionPeriod(beginExecutionPeriodID),
getEndExecutionPeriod(endExecutionPeriodID));
}