@Override
    public URLConnection openConnection(URL url) throws IOException {
        if (url.getPath() == null || url.getPath().trim().length() == 0) {
            throw new MalformedURLException("Path can not be null or empty. Syntax: " + SYNTAX );
        }
        bpmnXmlURL = new URL(url.getPath());

        logger.log(Level.FINE, "BPMN xml URL is: [" + bpmnXmlURL + "]");
        return new Connection(url);
    }
@ Override public URLConnection openConnection ( URL url ) throws IOException { if ( url . getPath ( ) == null || url . getPath ( ) . trim ( ) . length ( ) == 0 ) { throw new MalformedURLException ( "Path can not be null or empty. Syntax: " + SYNTAX ) ; } bpmnXmlURL = new URL ( url . getPath ( ) ) ; logger . log ( Level . FINE , "BPMN xml URL is: [" + bpmnXmlURL + "]" ) ; return new Connection ( url ) ; }
Open the connection for the given URL.

@param url the url from which to open a connection.
@return a connection on the specified URL.
@throws IOException if an error occurs or if the URL is malformed.