@Override public FeatureStore build() { ConnectionProvider conn = workspace.getResource( ConnectionProviderProvider.class, config.getJDBCConnId().getValue() ); checkConnection( conn ); File file = metadata.getLocation().resolveToFile( metadata.getIdentifier().getId() + ".xml" ); SQLFeatureStore fs = null; try { // TODO rewrite needed to properly resolve files using resource location fs = new SQLFeatureStore( config, file.toURI().toURL(), conn.getDialect(), metadata, workspace ); } catch ( MalformedURLException e ) { LOG.trace( "Stack trace:", e ); } return fs; }