public static CopyObjectResponse toCopyObjectResponse(S3CopyObjectResponse engineResponse) throws AxisFault {
CopyObjectResponse response = new CopyObjectResponse();
int resultCode = engineResponse.getResultCode();
CopyObjectResult result = new CopyObjectResult();
if ( 300 <= resultCode )
{
String description = engineResponse.getResultDescription();
throw new AxisFault( "" + resultCode, (null == description ? "" : description));
}
result.setETag( "\"" + engineResponse.getETag() + "\"" );
result.setLastModified(engineResponse.getLastModified());
response.setCopyObjectResult(result);
return response;
}