Initial refactoring on full file transaction support
FORGE-1268: MavenPomResource now extends XMLResource
Truncating file before returning OutputStream
Handled exception thrown in XADisk when fileExists is called for a nested invalid directory (behavior is described in https://java.net/jira/browse/XADISK-120)
Implemented InputStream that returns the available remaining bytes, because ShrinkWrap uses it (see https://issues.jboss.org/browse/SHRINKDESC-153)
FORGE-1269: Maven building now uses the Resource API. It is now possible to create projects under a transaction
Removed uneeded operation
Changed method signature of ResourceGenerator.getResourceType (ResourceFactory is needed in some cases - FileResourceOperations object)
Using Furnace's OperatingSystemUtils for temp dir creation