Avoid writing configurations repeatedly, avoid retrieving class bytes twice, use sun.misc.Resource.getBytes if available.Signed-off-by: Ross Allan <[email protected]> (commit: d9c1dd7)