class PropertiesResourceImpl extends ResourceImpl {

    @Override
    protected void doSave(OutputStream outputStream, Map<?, ?> options)
            throws IOException {
        savedProperties = 0;
        String type = getPropertyType(options);
        PropertyScanner scanner = PropertyResourceUtil.createScanner(type);
        String encoding = scanner.getEncoding();
        PropertyConverter converter = scanner.createConverter(getURI());
        try{

        		PropertyFile file = (PropertyFile) getContents().get(0);
        		savedProperties = converter.write(outputStream, file,encoding);
        }
        finally{
				outputStream.close();
        }
    }

    public  PropertiesResourceImpl(URI uri);

}