class PerformanceMonitorFactory {

    public synchronized PerformanceMonitor createPerformanceMonitor(String name) {
        PerformanceMonitor performanceMonitor = findPerformanceMonitor(name);

        if (performanceMonitor == null) {
            performanceMonitor = new PerformanceMonitor();
            addPerformanceMonitorToMap(name, performanceMonitor);
        }
        return performanceMonitor;
    }

    public  PerformanceMonitorFactory();

}