*
* @param context The context to convert to a Groovy context
* @return The original context wrapped in a Groovy context
*/
public static GroovyContext context(Context context) {
return context instanceof GroovyContext ? (GroovyContext) context : new DefaultGroovyContext(context);
}