public int readProp() throws ServerException {
        int port = 7070;
        if (log.isDebugEnabled())
            log.debug("Method call");
        Properties prop = new Properties();
        InputStream input = null;
        try {
            input = new FileInputStream("servConfig.properties");
            prop.load(input);
            port = Integer.parseInt(prop.getProperty("port"));
        } catch (IOException e) {
            ServerException ex = new ServerException(e);
            log.error("Exception", ex);
            throw ex;
        } catch(NumberFormatException e) {
            ServerException ex = new ServerException("Specified port is not correct, using port 7070",e);
            log.error("Exception", ex);
        } finally {
            try {
                if (input != null)
                    input.close();
                
            } catch (IOException e) {
                ServerException ex = new ServerException(e);
                log.error("Exception", ex);
                throw ex;
            }
        }
        return port;
    }