Spark integrate with spring