public static void trimScript(Script body) {
synchronized(body) {
if (body instanceof WeakReferenceWrapperScript) {
WeakReferenceWrapperScript wrrs = (WeakReferenceWrapperScript) body;
try {
wrrs.trimWhitespace();
} catch (JellyTagException e) {
//TODO handle this exception once the Tag interface allows JellyTagException to be thrown
return;
}
} else if ( body instanceof CompositeTextScriptBlock ) {