Global refactorin of Spring integration part. Now code more suitable to include in Spring mainstream. Rewrited logic in accordance with Spring scripting languages support interfaces. Changed code style to fit Spring conventions.