Added configuration algorithm and maven detection