added method for better BC with AsseticBundle