writer.write( "\n" + pad + "</strategy>" );
    public void encodeStrategy( Writer writer, Strategy strategy, String pad ) throws IOException    {        Object data = strategy.getDeploymentData();        if( data instanceof Plugin )        {            Plugin plugin = (Plugin) data;            String classname = plugin.getClassname();            writer.write( "\n  <strategy xsi:type=\"plugin\" class=\"" );            writer.write( classname );            writer.write( "\"" );            if( plugin.getValues().length > 0 )            {                Value[] values = plugin.getValues();                VALUE_ENCODER.encodeValues( writer, values, "    " );            }            else            {                writer.write( "/>" );            }        }        else if( data instanceof Resource )        {            Resource resource = (Resource) data;            String urn = resource.getURN();            String path = resource.getPath();            writer.write( "\n  <strategy xsi:type=\"resource\"" );            writer.write( " urn=\"" + urn );            writer.write( "\" path=\"" + path );            writer.write( "\"/>" );        }        else        {            final String error =               "Unsupported strategy datatype: "               + data.getClass().getName();            throw new IOException( error );        }    }