private void updatePackageBinaries(PackageItem item,
PackageAssembler packageAssembler) throws DetailedSerializationException {
try {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
ObjectOutput out = new DroolsObjectOutputStream( bout );
out.writeObject( packageAssembler.getBinaryPackage() );
item.updateCompiledPackage( new ByteArrayInputStream( bout.toByteArray() ) );
out.flush();
out.close();