workaround for TIBCOAMX to prevent ResourceException