URL url  =   this .getClass().getResource( " EJBConfig.xml " );
        
try  {
            File xmlFile 
=   new  File(URLDecoder.decode(url.getFile(), " UTF-8 " ));
            
if (xmlFile.exists())
                System.
out .println( " OK " );
        } 
catch  (UnsupportedEncodingException e) {
            e.printStackTrace();  
// To change body of catch statement use File | Settings | File Templates.
        }