code: public void init(ServletContext context) {
          if (profiles != null) {
              for (IDiagramProfile profile : profiles) {
                  profile.init(context);
                  _registry.put(profile.getName(),
                                profile);
              }
          }
      }
docs: Initialize the service with a context
  @param context the servlet context to initialize the profile.