Using getResource instead of System.getProperty.