@@ -0,0 +1,2424 @@
+/*%0D%0A * Copyright (c) 2011 Stiftung Deutsches Elektronen-Synchrotron,%0D%0A * Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY.%0D%0A *%0D%0A * THIS SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN %22../AS IS%22 BASIS.%0D%0A * WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED%0D%0A * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE AND%0D%0A * NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE%0D%0A * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,%0D%0A * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR%0D%0A * THE USE OR OTHER DEALINGS IN THE SOFTWARE. SHOULD THE SOFTWARE PROVE DEFECTIVE%0D%0A * IN ANY RESPECT, THE USER ASSUMES THE COST OF ANY NECESSARY SERVICING, REPAIR OR%0D%0A * CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE.%0D%0A * NO USE OF ANY SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.%0D%0A * DESY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,%0D%0A * OR MODIFICATIONS.%0D%0A * THE FULL LICENSE SPECIFYING FOR THE SOFTWARE THE REDISTRIBUTION, MODIFICATION,%0D%0A * USAGE AND OTHER RIGHTS AND OBLIGATIONS IS INCLUDED WITH THE DISTRIBUTION OF THIS%0D%0A * PROJECT IN THE FILE LICENSE.HTML. IF THE LICENSE IS NOT INCLUDED YOU MAY FIND A COPY%0D%0A * AT HTTP://WWW.DESY.DE/LEGAL/LICENSE.HTM%0D%0A *%0D%0A * $Id: DesyKrykCodeTemplates.xml,v 1.7 2010/04/20 11:43:22 bknerr Exp $%0D%0A */%0D%0Apackage org.csstudio.config.ioconfig.model.tools;%0D%0A%0D%0Aimport javax.annotation.Nonnull;%0D%0A%0D%0Aimport org.csstudio.auth.security.SecurityFacade;%0D%0Aimport org.csstudio.auth.security.User;%0D%0A%0D%0A/**%0D%0A * Get a the Login User name. Is nobody login return unkown.  %0D%0A * %0D%0A * @author hrickens%0D%0A * @author $Author: hrickens $%0D%0A * @version $Revision: 1.7 $%0D%0A * @since 02.08.2011%0D%0A */%0D%0Apublic final class UserName %7B%0D%0A%0D%0A    /**%0D%0A     * Constructor.%0D%0A     */%0D%0A    private UserName() %7B%0D%0A        // Constructor.%0D%0A    %7D%0D%0A    %0D%0A    /**%0D%0A     * Get a the Login User name. Is nobody login return unkown.  %0D%0A     */%0D%0A    @Nonnull%0D%0A    public static String getUserName() %7B%0D%0A        String name = %22Unknown%22;%0D%0A        try %7B%0D%0A            final User user = SecurityFacade.getInstance().getCurrentUser();%0D%0A            if (user != null) %7B%0D%0A                name = user.getUsername();%0D%0A            %7D%0D%0A        %7D catch (final Exception e) %7B%0D%0A            name = %22Unknown%22;%0D%0A        %7D%0D%0A        return name;%0D%0A    %7D%0D%0A%7D%0D%0A

move repository class in a new package