public static void addEffect(NSMutableDictionary options, String effect, String updateContainerID, String effectProperty, String effectStart, String duration, String mode) {
if(effect != null) {
if(options.objectForKey("onSuccess") != null) {
throw new WODynamicElementCreationException("You cannot specify both an effect and a custom onSuccess function.");
}
if(updateContainerID == null) {
throw new WODynamicElementCreationException("You cannot specify an effect without an updateContainerID.");
}
StringBuilder effectBuffer = new StringBuilder();
effectBuffer.append("function() { ");
if(effect.equals("tween")) {
if(duration != null) {